public class Program {
    public static void main(String[] args) {
        Employee[] es =new Employee[3];

        es[0]=new Manger("周杰伦",20000);
        es[1]=new Saler("张三",2000,10,100);
        es[2]=new Saler("李四",200,10,200);


        for(int i=0;i<es.length;i++){
            System.out.printf("%s的月收入为%.1f\r\n",es[i].getName(),es[i].ComputeMoney());
        }
    }

}
